rm=rm -f
obj=*.o *.res
exe=*.exe *.dll *.a
opt=-Os -s -fno-rtti -fno-exceptions -w -static
args=
cxx=g++ -std=c++11 $(opt) $(args)

opp%.o: %.cpp
	$(cxx) -c $< -o $@
chttpd: opphttpd.o oppserver.o oppthreading.o opphttp.o oppconfparser.o
	$(cxx) $^ -o $@ -lws2_32
clean:
	$(rm) $(obj) $(exe)
